package com.xcx.dto;

import com.xcx.common.dto.base.BaseReq;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

@Getter
@Setter
public class CancelCollectUserReq extends BaseReq {
	
	private static final long serialVersionUID = 120456789297543L;

	/**
	 * 用户号
	 */
	private String userNo;

	/**
	 * 收藏编号
	 */
	private String collectNo;

	@Override
	public String validate() {
		String result = super.validate();
		if (StringUtils.isNotBlank(result)) {
			return result;
		}
		if (StringUtils.isBlank(userNo)) {
			return "用户号不能为空";
		}
		if (StringUtils.isBlank(collectNo)) {
			return "收藏编号不能为空";
		}
		return null;
	}
}
